package com.pn.taikao.service;

import com.pn.taikao.entity.Course;

import java.util.List;

public interface CourseService {
    Long createCourse(Course course);

    void updateCourse(Course course);

    void deleteCourse(Long id);

    Course getById(Long id);

    List<Course> list(String name, Long teacherId, Long collegeId, int page, int size);

    long count(String name, Long teacherId, Long collegeId);

    List<Course> getByTeacherId(Long teacherId);

    List<Course> getByCollegeId(Long collegeId);
}



